/******/ (function(modules) { // webpackBootstrap
/******/ 	// install a JSONP callback for chunk loading
/******/ 	var parentJsonpFunction = window["webpackJsonp"];
/******/ 	window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) {
/******/ 		// add "moreModules" to the modules object,
/******/ 		// then flag all "chunkIds" as loaded and fire callback
/******/ 		var moduleId, chunkId, i = 0, callbacks = [];
/******/ 		for(;i < chunkIds.length; i++) {
/******/ 			chunkId = chunkIds[i];
/******/ 			if(installedChunks[chunkId])
/******/ 				callbacks.push.apply(callbacks, installedChunks[chunkId]);
/******/ 			installedChunks[chunkId] = 0;
/******/ 		}
/******/ 		for(moduleId in moreModules) {
/******/ 			modules[moduleId] = moreModules[moduleId];
/******/ 		}
/******/ 		if(parentJsonpFunction) parentJsonpFunction(chunkIds, moreModules);
/******/ 		while(callbacks.length)
/******/ 			callbacks.shift().call(null, __webpack_require__);
/******/ 		if(moreModules[0]) {
/******/ 			installedModules[0] = 0;
/******/ 			return __webpack_require__(0);
/******/ 		}
/******/ 	};

/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// object to store loaded and loading chunks
/******/ 	// "0" means "already loaded"
/******/ 	// Array means "loading", array contains callbacks
/******/ 	var installedChunks = {
/******/ 		26:0
/******/ 	};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}

/******/ 	// This file contains only the entry chunk.
/******/ 	// The chunk loading function for additional chunks
/******/ 	__webpack_require__.e = function requireEnsure(chunkId, callback) {
/******/ 		// "0" is the signal for "already loaded"
/******/ 		if(installedChunks[chunkId] === 0)
/******/ 			return callback.call(null, __webpack_require__);

/******/ 		// an array means "currently loading".
/******/ 		if(installedChunks[chunkId] !== undefined) {
/******/ 			installedChunks[chunkId].push(callback);
/******/ 		} else {
/******/ 			// start chunk loading
/******/ 			installedChunks[chunkId] = [callback];
/******/ 			var head = document.getElementsByTagName('head')[0];
/******/ 			var script = document.createElement('script');
/******/ 			script.type = 'text/javascript';
/******/ 			script.charset = 'utf-8';
/******/ 			script.async = true;

/******/ 			script.src = __webpack_require__.p + "" + chunkId + "." + ({"0":"address","1":"allOrder","2":"clerkManager","3":"comission","4":"comissionTab","5":"coupon","6":"evaluate","7":"fansMove","8":"finaceManager","9":"index","10":"invoce","11":"manager","12":"newAddress","13":"orderConfirm","14":"orderDetail","15":"personalCenter","16":"personalIndex","17":"productDetail","18":"productManager","19":"productPort","20":"qrcode","21":"refund","22":"shopCart","23":"storeDetail","24":"storeManager","25":"success"}[chunkId]||chunkId) + ".js";
/******/ 			head.appendChild(script);
/******/ 		}
/******/ 	};

/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	__webpack_require__(13);
	__webpack_require__(10);
	module.exports = __webpack_require__(21);


/***/ },
/* 1 */,
/* 2 */,
/* 3 */,
/* 4 */,
/* 5 */,
/* 6 */,
/* 7 */,
/* 8 */,
/* 9 */,
/* 10 */
/***/ function(module, exports) {

	var getdata = "../../getdata/"; //区分服务器接口
	//var getdata = "http://cdcdemo.woaap.com/";//区分服务器接口
	//var getdata = "../../";//区分服务器接口
	module.exports = {
		"productIndex": getdata + "home/Product/index", // 商品列表	    	GET     	[openid]
		"getProductInfo": getdata + "home/Product/getProductInfo", // 商品单品详情		GET     	[openid,product_id]
		"getStoreList": getdata + "home/Inventory/getStoreList", // 库存列表      		GET     	[openid]
		"inventoryList": getdata + "home/Inventory/inventoryList", // 库存列表明细		GET     	[openid,product_id]
		"doEditInventory": getdata + "home/Inventory/doEditInventory", // 修改库存      		POST 		[openid,product_id,good]
		"orderlist": getdata + "home/OrderInfo/orderlist", // 订单管理      		GET 		[openid,product_id]
		"orderdetail": getdata + "home/OrderInfo/orderdetail", // 订单列表     		GET 		[openid,order_id]
		"ordersend": getdata + "home/OrderInfo/ordersend", // 手动发货     		POST 		[openid,order_id,shipping_id,shipping_number]
		"Commission": getdata + "home/Commission/index", // 佣金列表     		GET 		[openid]
		"CommissionPhb": getdata + "home/Commission/index", // 佣金排行榜     	GET 		[openid]
		"yj_zhifu": getdata + "home/Commission/yj_zhifu", // 佣金支付     		POST 		[openid,money] id逗号隔开
		"my_yj": getdata + "home/Commission/my_yj", // 我的佣金     		GET 		[openid,dy_id]
		"qr_sq": getdata + "home/Commission/qr_sq", // 确认收款(单条)     POST 		[openid,money]
		"update_qb": getdata + "home/Commission/update_qb", // 确认收款(批量)     POST 		[openid,money] id逗号隔开
		"postAddCart": getdata + "home/cart/postAddCart", // 加入购物车     	POST 		[openid,id,color,size,cup,num]
		"postCartList": getdata + "home/cart/postCartList", // 获取购物车列表     POST 		[openid]
		"postUpdateCartNum": getdata + "home/cart/postUpdateCartNum", // 更新购物车数量     POST 		[openid,id,num]
		"postEditCart": getdata + "home/cart/postEditCart", // 编辑购物车     	POST 		[openid,id,color,size,cup]
		"postDestroyCart": getdata + "home/cart/postDestroyCart", // 删除购物车     	POST 		[openid,id]
		"postConfirmOrder": getdata + "home/cart/postConfirmOrder", // 结算获取商品列表   POST 		[openid,cart_id]
		"postAddressList": getdata + "home/cart/postAddressList", // 获取送货地址列表   POST 		[openid]
		"postPayOrder": getdata + "home/cart/postPayOrder", // 创建订单   		POST 		[openid,cart_id,address_id]
		"postAddAddress": getdata + "home/Cart/postAddAddress", // 新增地址   		POST 		[openid,name,province,city]
		"postEditAddress": getdata + "home/Cart/postEditAddress", // 编辑地址   		POST 		[openid,id,name,province,city,district,address,mobile,is_default]
		"postSelectAddress": getdata + "home/Cart/postSelectAddress", // 编辑地址new   		POST 		[openid,id,name,province,city,district,address,mobile,is_default]
		"storeAll": getdata + "home/store/storeAll", // 门店管理  			POST 		[openid,store_id]
		"storeSingle": getdata + "home/store/storeSingle", // 门店列表   		POST 		[openid,store_id]
		"storeClerk": getdata + "home/store/storeClerk", // 店员列表   		POST 		[openid,store_id]
		"clerOpenidkSingle": getdata + "home/clerk/clerOpenidkSingle", // 个人中心   		POST 		[openid]
		"indexPic": getdata + "home/CarouselImage/get_carousel_image/1", //首页轮播图          GET
		"getCount": getdata + "home/Cart/postCartCount", //购物车数量          GET
		"storeityLink": getdata + "home/store/cityLink",
		"add_goods_comment": getdata + "home/GoodsComment/add_goods_comment", //商品评论
		"jsok": "../../home/WeScan/jsok", //jssdk
		"postReturnOpts": getdata + "home/ReturnOrder/postReturnOpts", //退换类型
		"postReturnGood": getdata + "home/ReturnOrder/postReturnGood", //退换提交

		"orderConfirm": 'order-confirm', //选中地址跳转订单
		"orderManager": '../alliance/order-manager', //个人中心页面跳转
		"newAddress": "new-address", //新增收货地址
		"Caddress": "address", //选择收货地址
		"goDetail": "product-detail", //跳转商品详情页
		"goEvaluate": "evaluate", //跳转商品评价
		"orderDetail": 'order-detail', //跳转查看详情
		"Index": "index", //首页
		"shopCar": "shop-cart", //购物车
		"Center": "personal-center", //个人中心

		"productM": "product-manager", //商品管理
		"finaceM": "finace-manager", //财务管理
		"clerkM": "clerk-manager", //店员管理
		"storeM": "store-manager", //门店管理
		"baseImageUrl": "http://qiniu.woaap.com/dslr/app/img/"
	};

/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {

	var template = __webpack_require__(12);
	template.config('escape', false);

	//手机号部分隐藏
	template.helper('hideMobile', function (content) {
	    var phone = content;
	    var mphone = phone.substr(3, 4);
	    return phone.replace(mphone, "****");
	});
	//日期格式
	/**   
	    * 对日期进行格式化，  
	    * @param date 要格式化的日期  
	    * @param format 进行格式化的模式字符串  
	    *     支持的模式字母有：  
	    *     y:年,  
	    *     M:年中的月份(1-12),  
	    *     d:月份中的天(1-31),  
	    *     h:小时(0-23),  
	    *     m:分(0-59),  
	    *     s:秒(0-59),  
	    *     S:毫秒(0-999),  
	    *     q:季度(1-4)  
	    * @return String  
	    */
	template.helper('xx', function (date, format) {

	    date = new Date(date);
	    var map = {
	        "M": date.getMonth() + 1, //月份 
	        "d": date.getDate(), //日 
	        "h": date.getHours(), //小时 
	        "m": date.getMinutes(), //分 
	        "s": date.getSeconds(), //秒 
	        "q": Math.floor((date.getMonth() + 3) / 3), //季度 
	        "S": date.getMilliseconds() //毫秒 
	    };

	    format = format.replace(/([yMdhmsqS])+/g, function (all, t) {
	        var v = map[t];
	        if (v !== undefined) {
	            if (all.length > 1) {
	                v = '0' + v;
	                v = v.substr(v.length - 2);
	            }
	            return v;
	        } else if (t === 'y') {
	            return (date.getFullYear() + '').substr(4 - all.length);
	        }
	        return all;
	    });
	    return format;
	});

	module.exports = template;

/***/ },
/* 12 */
/***/ function(module, exports, __webpack_require__) {

	var __WEBPACK_AMD_DEFINE_RESULT__;/*!art-template - Template Engine | http://aui.github.com/artTemplate/*/
	!function () {
	  function a(a) {
	    return a.replace(t, "").replace(u, ",").replace(v, "").replace(w, "").replace(x, "").split(y);
	  }function b(a) {
	    return "'" + a.replace(/('|\\)/g, "\\$1").replace(/\r/g, "\\r").replace(/\n/g, "\\n") + "'";
	  }function c(c, d) {
	    function e(a) {
	      return m += a.split(/\n/).length - 1, k && (a = a.replace(/\s+/g, " ").replace(/<!--[\w\W]*?-->/g, "")), a && (a = s[1] + b(a) + s[2] + "\n"), a;
	    }function f(b) {
	      var c = m;if (j ? b = j(b, d) : g && (b = b.replace(/\n/g, function () {
	        return m++, "$line=" + m + ";";
	      })), 0 === b.indexOf("=")) {
	        var e = l && !/^=[=#]/.test(b);if (b = b.replace(/^=[=#]?|[\s;]*$/g, ""), e) {
	          var f = b.replace(/\s*\([^\)]+\)/, "");n[f] || /^(include|print)$/.test(f) || (b = "$escape(" + b + ")");
	        } else b = "$string(" + b + ")";b = s[1] + b + s[2];
	      }return g && (b = "$line=" + c + ";" + b), r(a(b), function (a) {
	        if (a && !p[a]) {
	          var b;b = "print" === a ? u : "include" === a ? v : n[a] ? "$utils." + a : o[a] ? "$helpers." + a : "$data." + a, w += a + "=" + b + ",", p[a] = !0;
	        }
	      }), b + "\n";
	    }var g = d.debug,
	        h = d.openTag,
	        i = d.closeTag,
	        j = d.parser,
	        k = d.compress,
	        l = d.escape,
	        m = 1,
	        p = { $data: 1, $filename: 1, $utils: 1, $helpers: 1, $out: 1, $line: 1 },
	        q = "".trim,
	        s = q ? ["$out='';", "$out+=", ";", "$out"] : ["$out=[];", "$out.push(", ");", "$out.join('')"],
	        t = q ? "$out+=text;return $out;" : "$out.push(text);",
	        u = "function(){var text=''.concat.apply('',arguments);" + t + "}",
	        v = "function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);" + t + "}",
	        w = "'use strict';var $utils=this,$helpers=$utils.$helpers," + (g ? "$line=0," : ""),
	        x = s[0],
	        y = "return new String(" + s[3] + ");";r(c.split(h), function (a) {
	      a = a.split(i);var b = a[0],
	          c = a[1];1 === a.length ? x += e(b) : (x += f(b), c && (x += e(c)));
	    });var z = w + x + y;g && (z = "try{" + z + "}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:" + b(c) + ".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try {
	      var A = new Function("$data", "$filename", z);return A.prototype = n, A;
	    } catch (B) {
	      throw B.temp = "function anonymous($data,$filename) {" + z + "}", B;
	    }
	  }var d = function (a, b) {
	    return "string" == typeof b ? q(b, { filename: a }) : g(a, b);
	  };d.version = "3.0.0", d.config = function (a, b) {
	    e[a] = b;
	  };var e = d.defaults = { openTag: "<%", closeTag: "%>", escape: !0, cache: !0, compress: !1, parser: null },
	      f = d.cache = {};d.render = function (a, b) {
	    return q(a, b);
	  };var g = d.renderFile = function (a, b) {
	    var c = d.get(a) || p({ filename: a, name: "Render Error", message: "Template not found" });return b ? c(b) : c;
	  };d.get = function (a) {
	    var b;if (f[a]) b = f[a];else if ("object" == typeof document) {
	      var c = document.getElementById(a);if (c) {
	        var d = (c.value || c.innerHTML).replace(/^\s*|\s*$/g, "");b = q(d, { filename: a });
	      }
	    }return b;
	  };var h = function (a, b) {
	    return "string" != typeof a && (b = typeof a, "number" === b ? a += "" : a = "function" === b ? h(a.call(a)) : ""), a;
	  },
	      i = { "<": "&#60;", ">": "&#62;", '"': "&#34;", "'": "&#39;", "&": "&#38;" },
	      j = function (a) {
	    return i[a];
	  },
	      k = function (a) {
	    return h(a).replace(/&(?![\w#]+;)|[<>"']/g, j);
	  },
	      l = Array.isArray || function (a) {
	    return "[object Array]" === {}.toString.call(a);
	  },
	      m = function (a, b) {
	    var c, d;if (l(a)) for (c = 0, d = a.length; d > c; c++) b.call(a, a[c], c, a);else for (c in a) b.call(a, a[c], c);
	  },
	      n = d.utils = { $helpers: {}, $include: g, $string: h, $escape: k, $each: m };d.helper = function (a, b) {
	    o[a] = b;
	  };var o = d.helpers = n.$helpers;d.onerror = function (a) {
	    var b = "Template Error\n\n";for (var c in a) b += "<" + c + ">\n" + a[c] + "\n\n";"object" == typeof console && console.error(b);
	  };var p = function (a) {
	    return d.onerror(a), function () {
	      return "{Template Error}";
	    };
	  },
	      q = d.compile = function (a, b) {
	    function d(c) {
	      try {
	        return new i(c, h) + "";
	      } catch (d) {
	        return b.debug ? p(d)() : (b.debug = !0, q(a, b)(c));
	      }
	    }b = b || {};for (var g in e) void 0 === b[g] && (b[g] = e[g]);var h = b.filename;try {
	      var i = c(a, b);
	    } catch (j) {
	      return j.filename = h || "anonymous", j.name = "Syntax Error", p(j);
	    }return d.prototype = i.prototype, d.toString = function () {
	      return i.toString();
	    }, h && b.cache && (f[h] = d), d;
	  },
	      r = n.$each,
	      s = "break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",
	      t = /\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,
	      u = /[^\w$]+/g,
	      v = new RegExp(["\\b" + s.replace(/,/g, "\\b|\\b") + "\\b"].join("|"), "g"),
	      w = /^\d[^,]*|,\d[^,]*/g,
	      x = /^,+|,+$/g,
	      y = /^$|,+/;e.openTag = "{{", e.closeTag = "}}";var z = function (a, b) {
	    var c = b.split(":"),
	        d = c.shift(),
	        e = c.join(":") || "";return e && (e = ", " + e), "$helpers." + d + "(" + a + e + ")";
	  };e.parser = function (a) {
	    a = a.replace(/^\s/, "");var b = a.split(" "),
	        c = b.shift(),
	        e = b.join(" ");switch (c) {case "if":
	        a = "if(" + e + "){";break;case "else":
	        b = "if" === b.shift() ? " if(" + b.join(" ") + ")" : "", a = "}else" + b + "{";break;case "/if":
	        a = "}";break;case "each":
	        var f = b[0] || "$data",
	            g = b[1] || "as",
	            h = b[2] || "$value",
	            i = b[3] || "$index",
	            j = h + "," + i;"as" !== g && (f = "[]"), a = "$each(" + f + ",function(" + j + "){";break;case "/each":
	        a = "});";break;case "echo":
	        a = "print(" + e + ");";break;case "print":case "include":
	        a = c + "(" + b.join(",") + ");";break;default:
	        if (/^\s*\|\s*[\w\$]/.test(e)) {
	          var k = !0;0 === a.indexOf("#") && (a = a.substr(1), k = !1);for (var l = 0, m = a.split("|"), n = m.length, o = m[l++]; n > l; l++) o = z(o, m[l]);a = (k ? "=" : "=#") + o;
	        } else a = d.helpers[c] ? "=#" + c + "(" + b.join(",") + ");" : "=" + a;}return a;
	  },  true ? !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
	    return d;
	  }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : "undefined" != typeof exports ? module.exports = d : this.template = d;
	}();

/***/ },
/* 13 */
/***/ function(module, exports, __webpack_require__) {

	__webpack_require__(14);
	//模板配置
	var tplArr = [];
	var template = __webpack_require__(11);
	var modalTpl = __webpack_require__(18);
	var moduleTpl = __webpack_require__(19);
	tplArr['modal'] = template.compile(modalTpl.replace(/^\s*|\s*$/g, ""));
	tplArr['module'] = template.compile(moduleTpl.replace(/^\s*|\s*$/g, ""));

	var userTest = {
	  "usertest1": "e/1ngaxDwUfFuNvjWELRKl/Q1Z7vNWtW0dZPB8K11Ow=", //加盟商
	  "usertest2": "BE4ay0w6cSgDuVT3tNKz4W+FoMh4YXJo3MBpO1sB0W8=", //店长
	  "usertest3": "KdDgH7wTJ80z7VLe2sRHuy6cZDjvsbVw6C+LM6W+wiM=", //店员
	  "usertest4": "9S6Vw0h24Lt5r60oZSRAhUlbTTbDb31JO4svUNEJUCE=", //门店合伙人
	  "usertest5": "DSdTSxaL++go6tQoIOx/YML7psfiJcdldJjzI8tKm3E=", //普通合伙人
	  "usertest6": "LRngDGQDSUXjG5dfTValAnDzCgy/HVmkgZ8X9gWYZqk=" };

	function Main() {
	  _this = this;
	  this.main = function () {
	    this.event(this, 'tap', 'm-click');
	    this.init();
	  };
	  //事件封装
	  this.event = function (_this, type, name) {
	    $(document).on(type, '[' + name + ']', function (e) {
	      //var ths = $(this)[0];
	      var event = $($(this)[0]).attr(name);
	      var Fun = event.split(',');
	      _this[Fun[0]]($($(this)[0]), Fun[1], e);
	    });
	  };
	  //区分全半角判断文字长度
	  this.getByteLen = function (val) {
	    if (!val) {
	      val = 0;
	    }
	    var len = 0;
	    for (var i = 0; i < val.length; i++) {
	      if (val.charAt(i).match(/[^\x00-\xff]/ig) != null) //全角
	        len += 2; //如果是全角，占用两个字节
	      else len += 1; //半角占用一个字节
	    }
	    return len / 2;
	  };
	  //获取url属性值
	  this.GetQueryString = function (name) {
	    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
	    var url = decodeURI(window.location.search);
	    var r = url.substr(1).match(reg);
	    if (r != null) return unescape(r[2]);return null;
	  };
	  //公共get方法
	  this.get = function (url, data, Fun) {

	    data.openid = this.openid;
	    console.log(data);
	    $.get(url, data, function (ret) {
	      Fun(ret);
	    }, 'json');
	  };
	  //公共post方法
	  this.post = function (url, data, Fun, showLoad) {
	    var _this = this;
	    //data.openid_test= "ojtKJjq93sF3dOoz4lA12MrxtcUk";
	    data.openid = this.openid;
	    if (showLoad) {
	      this.loading();
	    }
	    $.post(url, data, function (ret) {
	      Fun(ret);
	      if (showLoad) {
	        _this.dialogClose();
	      };
	    }, 'json');
	  };
	  //提示弹出框
	  this.alert = function (options) {
	    console.log(options);
	    if (!options) {
	      var options = {};
	    }
	    var data = {
	      "Ttype": "alert",
	      "title": options.title || "提示",
	      "closeFun": options.loseFun || 'm-click="dialogClose"',
	      "content": options.content || "内容"
	    };
	    var alert = $(tplArr['modal'](data)).dialog("show");
	    $('body').append(alert);
	  };
	  //确认弹出框
	  this.confirm = function (options) {
	    if (!options) {
	      var options = {};
	    }
	    var data = {
	      "Ttype": "confirm",
	      "title": options.title || "提示",
	      "eventFun": options.Fun || 'm-click="dialogClose"',
	      "closeFun": options.closeFun || 'm-click="dialogClose"',
	      "content": options.content || "内容"
	    };
	    var alert = $(tplArr['modal'](data)).dialog("show");
	    $('body').append(alert);
	  };
	  //底部弹出框
	  this.botActionsheet = function (options) {
	    if (!options) {
	      var options = {};
	    }
	    var data = {
	      "Ttype": "botActionsheet",
	      // "title": options.title || "标题",
	      // "eventFun": options.Fun || 'm-click="dialogClose"',
	      "closeFun": options.closeFun || 'm-click="dialogClose"',
	      "content": options.content || "内容"
	    };
	    var alert = $(tplArr['modal'](data)).dialog("show");
	    $('body').append(alert);
	  };
	  //关闭提示弹出层
	  this.dialogClose = function () {
	    $('.ui-dialog,.ui-actionsheet,.ui-loading-block').remove();
	  };
	  //加载提示
	  this.loading = function (text) {
	    if (!text) {
	      var text = "提交中...";
	    }
	    $('body').append(tplArr['module']({ "tType": "loadingBlock", "text": text }));
	  };
	  this.getHeader = function () {
	    var data = {
	      "tType": "header",
	      "number": ""
	    };
	    var dataC = {
	      "tType": "container"
	    };
	    $(".wrap").html(tplArr['module'](data));
	    $(".wrap").append(tplArr['module'](dataC));
	  };

	  this.init = function () {
	    //console.log(userTest[this.GetQueryString('openid')]);
	    //userTest['usertest1']
	    this.openid = openid; //开发阶段测试身份
	    this.getHeader();
	    $(function () {
	      orientLayer();
	    });
	  };
	  return this.main();
	};
	//横屏提示
	function orientLayer() {
	  var isOchange = false;
	  window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", function () {
	    if (window.orientation === 180 || window.orientation === 0) {
	      isOchange = false;
	    }
	    if (window.orientation === 90 || window.orientation === -90) {
	      isOchange = true;
	    }
	  }, false);
	  $(window).resize(function () {
	    setTimeout(function () {
	      wFun();
	    }, 0);
	  });
	  function wFun() {
	    //var Win = $(window);
	    var orientLayer = $('#orientLayer');
	    // var w = Win.width();
	    // var h = Win.height();
	    if (isOchange) {
	      orientLayer.show();
	    } else {
	      orientLayer.hide();
	    }
	  }
	  var style = '<style type="text/css">@-webkit-keyframes rotation{10%{transform:rotate(90deg);-webkit-transform:rotate(90deg)}50%,60%{transform:rotate(0deg);-webkit-transform:rotate(0deg)}90%{transform:rotate(90deg);-webkit-transform:rotate(90deg)}100%{transform:rotate(90deg);-webkit-transform:rotate(90deg)}}@keyframes rotation{10%{transform:rotate(90deg);-webkit-transform:rotate(90deg)}50%,60%{transform:rotate(0deg);-webkit-transform:rotate(0deg)}90%{transform:rotate(90deg);-webkit-transform:rotate(90deg)}100%{transform:rotate(90deg);-webkit-transform:rotate(90deg)}}#orientLayer{display:none}@media screen and(min-aspect-ratio:13/8){#orientLayer{display:block}}.mod-orient-layer{display:none;position:fixed;height:100%;width:100%;left:0;top:0;right:0;bottom:0;background:#333;z-index:9997}.mod-orient-layer__content{position:absolute;width:100%;top:45%;margin-top:-75px;text-align:center}.mod-orient-layer__icon-orient{background-image:url("");display:inline-block;width:67px;height:109px;transform:rotate(90deg);-webkit-transform:rotate(90deg);-webkit-animation:rotation infinite 1.5s ease-in-out;animation:rotation infinite 1.5s ease-in-out;-webkit-background-size:67px;background-size:67px}.mod-orient-layer__desc{margin-top:20px;font-size:15px;color:#fff}.qr-box{display:none}@media only screen and(min-width:1023px){html{width:414px;margin:0 auto;background-color:#333!important;position:absolute;left:50%;margin-left:-207px;max-height:672px}.qr-box{position:absolute;left:50%;margin-left:-75px;border-radius:4px;z-index:9999;background-color:#fff;top:50%;margin-top:-100px;display:block}.qr-box__thumb{position:absolute;right:59px;width:25px;height:25px;display:block;top:59px;z-index:9999;padding:2px;-webkit-background-size:25px;background-size:25px;background-repeat:no-repeat;background-position:2px 2px;border:none}.qr-box__thumb_default{background-color:#fff}.qr-box__text{width:100%;text-align:center;font-size:14px;line-height:18px;padding-bottom:10px}.qr-box__img{width:150px;height:150px;border:none;border-radius:10px 10px 0 0;background-size:140px;-webkit-background-size:140px;background-repeat:no-repeat;background-position:5px}.qr-box__img img{padding:5px;width:140px;height:140px}.screen__inner{-webkit-transform:scale(1.29375)!important;transform:scale(1.29375)!important}.mod-orient-layer__content{display:none}}</style>';
	  var con = '<div id="orientLayer" class="mod-orient-layer"><div class="mod-orient-layer__content"><i class="icon mod-orient-layer__icon-orient"></i><div class="mod-orient-layer__desc">为了更好的体验，请使用竖屏浏览</div></div></div>';
	  $('body').append(style + con);
	  wFun();
	}

	//exports.orientLayer = orientLayer;

	var main = new Main();
	module.exports = main;

/***/ },
/* 14 */
/***/ function(module, exports) {

	// removed by extract-text-webpack-plugin

/***/ },
/* 15 */,
/* 16 */,
/* 17 */,
/* 18 */
/***/ function(module, exports) {

	module.exports = "{{if Ttype == 'alert'}}\n<div class=\"ui-dialog\">\n    <div class=\"ui-dialog-cnt\">\n        <div class=\"ui-dialog-bd\">\n            <div>\n            <h4>{{title}}</h4>\n            <div>{{content}}</div></div>\n        </div>\n        <div class=\"ui-dialog-ft ui-btn-group\">\n            <button type=\"button\" {{closeFun}} class=\"select\" id=\"dialogButton{{i}}\">关闭</button> \n        </div>\n    </div>        \n</div>\n{{/if}}\n{{if Ttype == 'confirm'}}\n<div class=\"ui-dialog\">\n    <div class=\"ui-dialog-cnt\">\n        <div class=\"ui-dialog-bd\">\n            <div>\n            <h4>{{title}}</h4>\n            <div>{{content||\"test\"}}</div>\n            </div>\n        </div>\n        <div class=\"ui-dialog-ft ui-btn-group\">\n            <button type=\"button\" class=\"select\" {{eventFun}}>确认</button> \n            <button type=\"button\" {{closeFun}}  class=\"select\" id=\"dialogButton\">关闭</button> \n        </div>\n    </div>        \n</div>\n{{/if}}\n{{if Ttype== \"qrcode\"}}\n<div class=\"ui-dialog main-dialog\">\n    <div class=\"ui-dialog-cnt\">\n        <button type=\"button\" data-role=\"button\" class=\"close\"></button> \n        <div class=\"ui-dialog-bd\" style=\"width: 220px; margin-left: 22px;\"> \n            <div class=\"title\">群二维码</div>\n            <hr>\n            <div class=\"content\">\n                <img src=\"{{baseUrl}}{{qrcode}}\" style=\"width: 100%;\">\n            </div>\n        </div> \n        <div class=\"ui-dialog-ft\"></div>\n    </div>        \n</div>\n{{/if}}\n{{if Ttype == \"botActionsheet\"}}\n<!--底部弹出框-->\n    <div class=\"ui-actionsheet bot-actionsheet show\">  \n        <div class=\"ui-actionsheet-cnt bot-actionsheet-cnt\">\n            <a class=\"ui-icon-close\" {{closeFun}}></a>\n            {{content}}\n        </div>         \n    </div>\n{{/if}}"

/***/ },
/* 19 */
/***/ function(module, exports) {

	module.exports = "{{if tType == 'ordersGoodsInfo'}}\n<!-- 订单商品信息 -->\n<ul class=\"ui-list\">\n    {{each list as value i}}\n    <li class=\"ui-border-t orders-goods-info\">\n        <div class=\"ui-list-info orders-goods-info\">\n            {{if value.info}}<h5 class=\"ui-noerap\">商品信息 共计{{value.info}}件商品</h5>{{/if}}\n            {{if value.store}}<h5 class=\"ui-noerap\">{{value.store}}</h5>{{/if}}\n            {{if value.title}}<h3 class=\"\">{{value.title}}</h3>{{/if}}\n            {{if value.attr}}<h5 class=\"ui-noerap\">属性: {{value.attr}}</h5>{{/if}}\n            {{if value.num}}<h5 class=\"ui-noerap\">商品编号: {{value.num}}</h5>{{/if}}\n            {{if value.spec}}<h5 class=\"ui-noerap\">规格: {{value.spec}}</h5>{{/if}}\n            {{if value.quantity}}<h5 class=\"ui-noerap\">数量: {{value.quantity}}</h5>{{/if}}\n            {{if value.inStock}}<h5 class=\"ui-noerap\">库存: {{value.inStock}}件</h5>{{/if}}\n            {{if value.colour}}<h5 class=\"ui-noerap\">颜色: {{value.colour}}</h5>{{/if}}\n            {{if value.cup}}<h5 class=\"ui-noerap\">罩杯: {{value.cup}}</h5>{{/if}}\n            {{if value.size}}<h5 class=\"ui-noerap\">尺寸: {{value.size}}</h5>{{/if}}\n            {{if value.price}}<h1 class=\"ui-noerap\">￥ <span class=\"proprice\">{{value.price}}</span></h1>{{/if}}\n        </div>\n        <div class=\"ui-list-img goods-img\">\n            <span style=\"background-image:url({{value.image}})\"></span>\n        </div>\n    </li>\n    {{/each}}\n</ul>\n{{/if}}\n{{if tType == 'showBotActionsheet'}}\n<!-- 快递信息 -->\n<div class=\"ui-form ui-border-t\">\n    <form action=\"{{postUrl}}\" class=\"orderForm\" callback=\"formCallback\">\n        <input type=\"hidden\" name=\"order_id\" value=\"{{order_id}}\">\n        <div class=\"ui-form-item ui-border-b\">\n            <label>物流选择</label>\n            <div class=\"ui-select\">\n                <select name=\"shipping_id\">\n                {{each exp as v n}}\n                    <option value=\"{{v.express_id}}\">{{v.express_name}}</option>\n                {{/each}}\n                </select>\n            </div>\n        </div>\n        <div class=\"ui-form-item ui-border-b\">\n            <label>物流单号</label>\n            <input type=\"text\" placeholder=\"\" name=\"shipping_number\" id=\"exp_number\">\n        </div>\n        <div class=\"ui-btn-wrap\"><button class=\"ui-btn-lg ui-btn-pink\" i-click=\"{{click}}\">确定</button></div>\n    </form>\n</div>\n{{/if}}\n{{if tType== \"star\"}}\n<!-- 评价-星级 -->\n{{each dataList as v i}}\n<div class=\"stars {{if !!v.bigStar}}big-star pad-t10{{else}}ui-whitespace star_{{i}}{{/if}} \">    \n    <p class=\"star-title\">{{v.key}}</p>\n    <i {{if !!v.click}}mo-click=\"{{v.click}},1\"{{/if}} class=\"ui-icon-star {{if v.value>=1}}on{{/if}}\"></i>\n    <i {{if !!v.click}}mo-click=\"{{v.click}},2\"{{/if}} class=\"ui-icon-star {{if v.value>=2}}on{{/if}}\"></i>\n    <i {{if !!v.click}}mo-click=\"{{v.click}},3\"{{/if}} class=\"ui-icon-star {{if v.value>=3}}on{{/if}}\"></i>\n    <i {{if !!v.click}}mo-click=\"{{v.click}},4\"{{/if}} class=\"ui-icon-star {{if v.value>=4}}on{{/if}}\"></i>\n    <i {{if !!v.click}}mo-click=\"{{v.click}},5\"{{/if}} class=\"ui-icon-star {{if v.value>=5}}on{{/if}}\"></i>\n</div>    \n{{/each}}\n{{/if}}\n{{if tType == 'selectaddress'}}\n<!-- 省市区地址三级联动 -->\n<div class=\"ui-form-item ui-form-item-show ui-border-b _ui-form-item\" sid=\"{{id}}\">   \n    <div class=\"ui-form-item\">\n        <label for=\"#\">省份</label>\n        <select name=\"province\" mo-change=\"getSelectAddress,1\"><option>选择省</option></select>\n    </div>\n    <div class=\"ui-form-item\">\n        <label for=\"#\">城市</label>\n        <select name=\"city\" mo-change=\"getSelectAddress,1\"><option>选择城市</option></select>\n    </div>\n    <div class=\"ui-form-item\">\n        <label for=\"#\">区域</label>\n        <select name=\"district\" {{Fun}}><option>选择区域</option></select>\n    </div>\n</div>\n{{/if}}\n{{if tType== \"headgrid\"}}\n<!-- 用户信息展示 -->\n<div id=\"headgrid\" class=\"bor-bom pad-tb15\">\n    <ul class=\"ui-list\">\n        <li>\n            <div class=\"ui-avatar _ui-avatar image_style\">\n                <img src=\"{{image}}\" alt=\"\">\n            </div>\n            <div class=\"ui-list-info\">\n                {{if !!title}}\n                <h2 class=\"ui-nowrap\">{{title}}</h2>\n                {{/if}}\n                {{if !!content}}\n                <p class=\"ui-nowrap\">{{content}}</p>\n                {{/if}}\n                {{if !!tag}}\n                <label class=\"ui-label _ui-label\">{{tag}}</label>\n                {{/if}}\n            </div>\n            {{if !!qrcode}}\n            <a class=\"ui-list-img _ui-list-qrcode\" href=\"{{qrlink}}\">\n                <span style=\"background-image:url({{qrcode}})\"></span>\n                <p>专享二维码</p>\n            </a>\n            {{/if}}\n        </li>\n    </ul> \n</div>   \n{{/if}}\n{{if tType== \"headblock\"}}\n<!-- 用户信息展示 -->\n<div id=\"headblock\" class=\"bor-bom pad-tb15 center\"> \n    <div class=\"ui-avatar _ui-avatar-center image_style\">\n        <img src=\"{{image}}\" alt=\"\">\n    </div>\n    <div>\n        {{if !!title}}\n        <h2 class=\"ui-nowrap\">{{title}}</h2>\n        {{/if}}\n        {{if content.length>0}}\n            {{each content as v i}}\n                <p class=\"ui-nowrap\">{{v.key}}:{{v.value}}</p>\n            {{/each}}\n        {{/if}}\n        {{if !!tag}}\n        <label class=\"ui-label _ui-label\">\n            {{tag}}\n        </label>\n        {{/if}}\n    </div>\n    {{if !!qrcode}}\n    <a class=\"ui-list-img _ui-qrcode\" href=\"{{qrlink}}\">\n        <span style=\"background-image:url({{qrcode}})\"></span>\n        <p class=\"title\">专享二维码</p>\n        {{if !!qrdetail}}\n        <p>{{qrdetail}}</p>\n        {{/if}}\n    </a>\n    {{/if}}         \n</div>   \n{{/if}}\n{{if tType== \"tabblock\"}}\n<!-- 我的订单-我的操作 -->\n<div id=\"tabblock\" class=\"bor-bom\">\n    <section class=\"ui-panel\">\n        <h3 class=\"\">{{title}}</h3>\n        <ul class=\"ui-row _ui-col\">\n        {{each dataList as v i}}\n            <li i-click=\"{{v.click}}\" class=\"ui-col ui-col-{{100/dataList.length}} ui-badge-wrap\"> \n\n                    {{if !!v.cornernum}}\n                    <div class=\"ui-badge-cornernum _ui-cornernum\">{{v.cornernum}}</div>\n                    {{/if}}\n                <div class=\"_col-img\">\n                    <img src=\"{{v.image}}\" alt=\"\">\n                </div>\n                <div>\n                    <p class=\"ui-nowrap\">{{v.name}}</p>\n                </div> \n            </li> \n        {{/each}}\n        </ul> \n    </section>\n</div>\n{{/if}}\n{{if tType== \"account\"}}\n<!-- 当前积分 -->\n<div id=\"account\" class=\"bor-bom pad-tb25 relative ui-whitespace\">\n    <h3>{{key}}：{{val}}</h3>\n    <a href=\"{{link}}\" class=\"ui-btn _btn _btn-right\">{{name}}</a>\n</div>  \n{{/if}}\n{{if tType== \"arrlist\"}}\n<!-- 列表 -->\n<div class=\"arrlist\">\n    {{each dataList as v i}}\n        <div class=\"ui-form-item ui-form-item-link ui-border-b\">\n            <a {{if v.link}}href=\"{{v.link}}\"{{/if}} {{if v.click}}i-click=\"{{v.click}}\"{{/if}}>{{v.name}}</a>\n        </div>  \n    {{/each}}\n</div>\n{{/if}}\n{{if tType== \"partner\"}}\n<!-- 加入合作 -->\n<div class=\"partner ui-whitespace\">\n    <h1>{{title}}</h1>\n    <h3>{{description}}</h3>\n    <!-- <a href=\"{{link}}\" class=\"ui-btn _btn\" {{fun}}>{{name}}</a>  -->\n</div>\n{{/if}}\n{{if tType== \"checklist\"}}\n<!-- 选取地址/优惠券 -->\n<div class=\"ui-form ui-border-t\">    \n    <ul class=\"ui-list ui-list-text ui-list-checkbox ui-border-b\">\n        {{each dataList as v i}}\n        <li class=\"ui-border-t\" address-id=\"{{v.addressId}}\">\n            <label class=\"ui-checkbox-s\" {{v.zClick}}>\n                <input type=\"radio\" name=\"{{name}}\" {{if v.checked}}checked=\"checked\"{{/if}} value=\"{{v.value}}\">\n            </label>\n            <p>\n                {{if !!v.address}}\n                    {{v.address}}<br>{{v.name}} {{v.phone}}\n                {{/if}}\n                {{if !!v.content}}\n                    {{v.content}}\n                {{/if}}\n                {{if !!v.kvlist}} \n                    {{each v.kvlist as u l}}\n                        <span>{{u.key}}: {{u.value}}</span>\n                    {{/each}} \n                {{/if}}\n            </p>\n            {{if !!v.btnName}}\n                <a href=\"javascript:;\" class=\"ui-btn _btn _btn-right w_auto\" i-click=\"{{v.edit}}\">{{v.btnName}}</a>\n            {{/if}}\n        </li>\n        {{/each}} \n     </ul>\n</div>        \n{{/if}}\n{{if tType == \"header\"}}\n<!--头部-->\n<header id=\"header\" class=\"ui-header ui-header-positive\">\n    <div class=\"logo\"></div>\n    <span class=\"number\">{{number}}</span>\n</header>\n{{/if}}\n{{if tType == \"footer\"}}\n<!--尾部-->\n<footer id=\"footer\" class=\"ui-footer ui-footer-stable\">\n    <ul class=\"foot_list ui-tiled\">\n    {{each dataList as v i}}\n        <li {{if active==i}}class=\"active\"{{/if}}>\n            <a href=\"{{v.link}}\" class=\"ui-badge-wrap\">\n                {{if v.cornernum >0}}\n                    <div class=\"ui-badge-cornernum right40\">{{v.cornernum}}</div>\n                {{/if}}\n                <i class=\"{{v.icon}}\"></i>\n                {{v.name}}\n            </a>\n        </li>\n    {{/each}}\n    </ul>\n</footer>  \n{{/if}}\n{{if tType== \"container\"}}\n<!--加载进度提示-->\n<div class=\"content ui-container\">\n    <div class=\"demo-block\">\n        <div class=\"ui-loading-wrap\">\n            <p>正在加载中...</p>\n            <i class=\"ui-loading\"></i>\n        </div>\n    </div>\n</div>\n{{/if}}\n{{if tType== \"loadingBlock\"}}\n<!--加载进度提示弹出框-->\n<div class=\"ui-loading-block show\">\n    <div class=\"ui-loading-cnt\">\n        <i class=\"ui-loading-bright\"></i>\n        <p>{{text}}</p>\n    </div>\n</div>\n{{/if}}\n{{if tType== \"storesInfoBrief\"}}\n<!--门店信息简述-->\n<div class=\"storesInfoBrief bor-b-e\">\n    <div class=\"ui-header ui-header-stable ui-border-b\">\n        <i class=\"ui-icon-hall\"></i>\n        <div class=\"infoBrief\">\n            <h2 class=\"ui-nowrap\">{{name}}</h2>\n            {{if desc}}<p class=\"ui-nowrap\">{{desc}}</p>{{/if}}\n        </div>\n        {{if status==1}}\n        <a href=\"#\" class=\"ui-btn\">更换门店</a>\n        {{/if}}\n    </div>\n</div>\n{{/if}}\n{{if tType== \"InfoTiled\"}}\n<!--信息简述-->\n<div class=\"goodsInfoTiled bor-b-e\">\n    <ul class=\"ui-tiled\">\n        {{each list as value i}}<li><div>{{value.name}}</div><i>{{value.key}}</i></li>{{/each}}\n    </ul>\n</div>\n{{/if}}\n{{if tType== \"baseSelect\"}}\n<!--公共下拉-->\n<div class=\"ui-select base-select\">\n    <select {{fun}}>\n        {{each list as v i}}<option value=\"{{v.value}}\" {{if selected == v.value}}selected=\"\"{{/if}}>{{v.name}}</option>{{/each}}\n    </select>\n</div>\n{{/if}} \n{{if tType== \"ordersGoodsStar\"}}\n<div class=\"bor-bom pad-tb15\">\n <ul class=\"ui-list\">\n    <li class=\"ui-border-t orders-goods-info\">\n        <div class=\"ui-list-info orders-goods-info\">\n            {{if title}}<h3 class=\"goods-title\">{{title}}</h3>{{/if}}\n            {{if star}} {{star}} {{/if}}\n        </div>\n        <div class=\"ui-list-img goods-img\">\n            <span style=\"background-image:url(http://placeholder.qiniudn.com/100x140/ddd/ddd)\"></span>\n        </div>\n    </li> \n</ul>   \n</div>\n{{/if}}\n{{if tType== \"evaluate\"}}\n<!-- 评价 -->\n<!-- http://placeholder.qiniudn.com/60x60/ddd/ddd -->\n<div class=\"bor-bom pad-tb15 center\">\n    <p class=\"ui-whitespace comission-title\">写下体会和使用感受来帮助其他小伙伴（评价文字不超过50字）</p>\n    <textarea class=\"comission\" name=\"comment_content\" id=\"\" cols=\"50\" rows=\"3\" maxlength=50></textarea>\n    <ul class=\"ui-list uploadPic\">\n        <li>\n            <div class=\"ui-list-img upload_s\" i-click=\"uploadPic\">\n                <span style=\"background-image:url(http://qiniu.woaap.com/dslr/app/img/upload.png)\"></span>\n            </div>\n            <div class=\"ui-list-info\"> \n                <p class=\"ui-nowrap\">图片大小不超过180K</p>\n            </div>\n        </li> \n    </ul>\n    <div class=\"checkSingle ui-whitespace\"><label for=\"anonymous\"><input id=\"anonymous\" type=\"checkbox\" name=\"anony\"> 匿名评价</label></div></div>\n{{/if}}\n{{if tType == 'orderinfo'}}\n<!--订单信息-->\n<div class=\"order_info ui-border-t\">\n    {{if status}}<h5>订单状态：{{status}}</h5>{{/if}}\n    {{if number}}<h5>订单编号：{{number}}</h5>{{/if}}\n    {{if ordertime}}<h5>下单时间：{{ordertime}}</h5>{{/if}}\n    {{if express}}<h5>快递物流：{{express}}</h5>{{/if}}\n    {{if expnumber}}<h5>快递单号：{{expnumber}}</h5>{{/if}}\n    {{if buttons}}\n    <div class=\"pad-t10\">\n        <a href=\"{{link1}}\" class=\"ui-btn _btn\">{{name1}}</a><a href=\"{{link2}}\" class=\"ui-btn _btn fr\">{{name2}}</a>\n    </div>\n    {{/if}}\n</div>\n<div class=\"order_info ui-border-t\">\n    {{if money}}<h5>商品金额：￥{{money}}</h5>{{/if}}\n    {{if address}}<h5>收货地址：{{address}}</h5>{{/if}}\n    {{if person}}<h5>收货人：{{person}}{{phone}}</h5>{{/if}}\n    {{if method}}<h5>配送方式：{{method}}</h5>{{/if}}\n    {{if time}}<h5>发货时间：{{time}}</h5>{{/if}}\n    {{if invoice}}<h5>发票信息：{{invoice}}</h5>{{/if}}\n</div>\n{{/if}}\n{{if tType == \"search\"}}\n<!--搜索框-->\n<div class=\"ui-searchbar-wrap\">\n    <div class=\"ui-searchbar ui-border-radius\" mo-click=\"searchFocus\">\n        <i class=\"ui-icon-search\"></i>\n        <div class=\"ui-searchbar-text\">{{placeholder}}</div>\n        <div class=\"ui-searchbar-input\">\n            <input value=\"\" type=\"tel\" placeholder=\"{{placeholder}}\" autocapitalize=\"off\">\n        </div>\n        <i class=\"ui-icon-close\"></i>\n    </div>\n    <button class=\"ui-searchbar-cancel\" mo-click=\"searchCancel\">取消</button> \n</div>\n{{/if}}\n{{if tType == \"tabNav\"}}\n<!--选项卡current-->\n<ul class=\"ui-tab-nav ui-border-b\">\n    {{each nav as value i}}<li {{fun}} {{if m==value}}class=\"current\"{{/if}} {{Fun}} name=\"{{value}}\">{{i}}</li>{{/each}}\n</ul>\n{{/if}}\n{{if tType== \"property\"}}\n<!--属性选择-->\n<div class=\"ui-border-t\">\n    <h5>颜    色</h5>\n    <ul>\n        {{each color as value i}}\n            {{if i==0}}\n                <input type=\"hidden\" name=\"color\" value=\"{{value.id}}\">\n            {{/if}}\n            <li class=\"{{if i==0}}current ui-tag-selected{{/if}}\" lid=\"{{value.id}}\" mo-click=\"Select\">\n                <img src=\"{{value.pic}}\" alt=\"\" >\n            </li>\n        {{/each}}\n    </ul>\n</div>\n<div class=\"ui-border-t\">\n    <h5>罩    杯</h5>\n    <ul class=\"cup_ul\">\n        {{each cup as value m}}\n            {{if m==0}}\n                    <input type=\"hidden\" name=\"cup\" value=\"{{value}}\">\n            {{/if}}\n            <li class=\"{{if m==0}}current ui-tag-selected{{/if}}\" lid=\"{{value}}\" mo-click=\"Select\">{{value}}</li>\n        {{/each}}\n    </ul>\n</div>\n<div class=\"ui-border-t\">\n    <h5>尺    码</h5>\n    <ul class=\"size_ul\">\n        {{each size as value n}}            \n            {{if n==0}}\n                    <input type=\"hidden\" name=\"size\" value=\"{{value}}\">\n            {{/if}}\n            <li class=\"{{if n==0}}current ui-tag-selected{{/if}}\" lid=\"{{value}}\" mo-click=\"Select\">{{value}}</li>\n        {{/each}}\n    </ul>\n</div>\n<div class=\"ui-border-t\">\n    <h5>购买数量</h5>\n    <div class=\"select_btn\">\n        <span i-click=\"changeCount,0\" class=\"reduce\">-</span>\n        <input class=\"quantity\" name=\"num\" value=\"1\">\n        <span i-click=\"changeCount,1\" class=\"add\">+</span>\n    </div>\n</div>\n{{/if}}\n{{if tType== \"success\"}}\n<div class=\"ui-notice ui-success\"><i></i>\n            <p class=\"title\">{{title}}</p>\n            <p>{{detail}}</p>\n            <div class=\"ui-notice-btn\">\n                <a href=\"{{link}}\" class=\"ui-btn-pink ui-btn-lg\">{{btnname}}</a>\n            </div>\n        </div>   \n{{/if}}        "

/***/ },
/* 20 */,
/* 21 */
/***/ function(module, exports, __webpack_require__) {

	var url = __webpack_require__(10);
	var template = __webpack_require__(11);
	var main = __webpack_require__(13);

	//模板配置
	var tplArr = [];
	var moduleTpl = __webpack_require__(19);
	tplArr['module'] = template.compile(moduleTpl.replace(/^\s*|\s*$/g, ""));
	var baseUrl = "/img/";

	var goodsInfo = [{
	    "id": 1,
	    "title": "大家乐文胸一片式无痕内衣厚B杯深V聚拢商场同款内衣1",
	    "attr": [],
	    "num": "1002837828372",
	    "spec": "大红,B杯,34/75",
	    "quantity": "1",
	    "inStock": "258",
	    "colour": "红色、粉色、嫩肤",
	    "cup": "A杯、B杯、C杯",
	    "size": "32/70、40/75",
	    "price": "99"
	}, {
	    "id": 2,
	    "title": "大家乐文胸一片式无痕内衣厚B杯深V聚拢商场同款内衣2",
	    "attr": [],
	    "num": "1002837828372",
	    "spec": "大红,B杯,34/75",
	    "quantity": "1",
	    "inStock": "258",
	    "colour": "红色、粉色、嫩肤",
	    "cup": "A杯、B杯、C杯",
	    "size": "32/70、40/75",
	    "price": "98"
	}];

	var starInfo = {
	    tType: "star",
	    dataList: [{
	        key: "评价",
	        value: "4",
	        bigStar: true
	    }, {
	        key: "商品包装",
	        value: "0",
	        click: "starClick"
	    }]
	};
	//个人信息
	var data_headgrid = {
	    tType: "headgrid",
	    image: "",
	    title: "Golan Yao",
	    tag: "超级粉丝"
	};
	//个人信息(竖列)
	var data_headblock = {
	    tType: "headblock",
	    image: "",
	    title: "Golan Yao",
	    tag: "虚拟店员",
	    content: [{
	        key: "店员编号",
	        value: "123"
	    }],
	    qrcode: "http://placeholder.qiniudn.com/300x300",
	    qrlink: "",
	    qrdetail: "扫码成为专享粉丝，享受粉丝福利！"
	};
	//积分
	var data_account = {
	    tType: "account",
	    key: "当前积分",
	    val: "1200",
	    name: "去积分商城"
	};
	//超链接列表
	var data_arrlist = {
	    tType: "arrlist",
	    dataList: [{
	        name: "我的优惠券",
	        link: ""
	    }, {
	        name: "我收藏的商品",
	        link: ""
	    }, {
	        name: "我的收货地址",
	        link: ""
	    }]
	};
	//申请加入说明
	var data_partner = {
	    tType: "partner",
	    title: "恭喜您！您已成为【超级粉丝】有机会成为【虚拟店员】",
	    description: "虚拟店员可获得虚拟店员专享二维码，享有8折拿货。",
	    link: "",
	    name: "大家乐会员规则"
	};
	//我的订单
	var data_tabblock = {
	    tType: "tabblock",
	    title: "我的订单",
	    baseUrl: baseUrl,
	    dataList: [{
	        image: "order_1.jpg",
	        name: "全部订单",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_2.jpg",
	        name: "待付款",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_3.jpg",
	        name: "代收货",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_4.jpg",
	        name: "待评价",
	        click: "",
	        cornernum: "1"
	    }, {
	        image: "order_5.jpg",
	        name: "退换货",
	        click: "",
	        cornernum: ""
	    }]
	};
	//header
	var data_header = {
	    tType: "header",
	    number: "No.62728"
	};
	var data_footer = {
	    tType: "footer",
	    active: "0",
	    dataList: [{
	        link: "",
	        icon: "/img/f_icon2.jpg",
	        name: "首页"
	    }, {
	        link: "",
	        icon: "/img/f_icon2.jpg",
	        name: "购物车"
	    }, {
	        link: "",
	        icon: "/img/f_icon2.jpg",
	        name: "个人中心"
	    }]
	};
	function Module() {
	    _this = this;
	    this.main = function () {
	        main.event(this, 'tap', 'mo-click');
	        main.event(this, 'change', 'mo-change');
	        this.init();
	        this.abc = "123";
	    };

	    /**
	     * [getModule 获取模板]
	     * @param  {[json]} ret  [数据集]
	     * @param  {[string]} name [模板名]
	     * @return {[string]}      [生成html]
	     */
	    this.getModule = function (ret, name) {
	        if (!name) return '';
	        if (!ret) {
	            ret = {};
	        }
	        var data = ret;
	        data.tType = name;
	        return tplArr['module'](data);
	    };

	    //订单商品信息
	    this.ordersGoodsInfo = function (ret) {
	        if (!ret) {
	            var ret = {};
	        }
	        var data = {
	            "tType": "ordersGoodsInfo",
	            "list": ret
	        };
	        return tplArr['module'](data);
	    };
	    //省市区地址选择
	    this.selectAddress = function (id, Fun) {
	        if (!id) {
	            var id = Math.ceil(Math.random() * 1000);
	        }
	        if (!Fun) {
	            var Fun = "";
	        }
	        var data = {
	            "tType": "selectaddress",
	            "id": id,
	            "Fun": Fun
	        };
	        return tplArr['module'](data);
	    };
	    //获取省市区地址选择
	    this.getSelectAddress = function (ths, type, val) {
	        var _this = this;
	        var opt = "";
	        var name = ths.attr("name");
	        var sid = ths.attr("sid");
	        if (type == 1) {
	            var val = ths.val();
	            selectObj(name, val);
	        } else {
	            if (!val) {
	                val = "";
	            }
	            main.get(url.storeityLink, { "region_id": val }, function (ret) {
	                var data = ret.data;
	                for (var i = 0; i < data.length; i++) {
	                    opt += "<option value=" + data[i].region_id + ">" + data[i].region_name + "</option>";
	                }
	                var html = ths.html(opt);
	                val = html.val();
	                if (val !== "") {
	                    if (name == "district") {
	                        ths.change();return false;
	                    }
	                    selectObj(name, val);
	                }
	            });
	        }
	        //下级递归
	        function selectObj(name, val) {
	            var obj = "";
	            name == "province" ? obj = 'city' : obj = 'district';
	            _this.getSelectAddress($(".ui-form-item select[name='" + obj + "']"), 0, val);
	        }
	    };
	    //星级
	    this.star = function (ret) {
	        if (!ret) {
	            ret = JSON.parse('{}');
	        }
	        var data = {
	            tType: "star",
	            dataList: ret
	        };
	        return tplArr['module'](data);
	    };
	    //星级点击
	    this.starClick = function (ths, num) {
	        var _c = ths.parents("div.stars");
	        _c.find("i").removeClass("on");
	        $.each(_c.find("i"), function (i, v) {
	            if (i + 1 <= num) {
	                $(this).addClass("on");
	            }
	        });
	    };
	    //输出内容
	    this.outHtml = function () {
	        $('.ui-container').html(_this.ordersGoodsInfo(goodsInfo) + _this.star(starInfo) + _this.selectAddress());
	    };
	    //底部弹出层demo
	    this.showBotActionsheet = function () {
	        if (!ret) {
	            var ret = {};
	        }
	        var data = {
	            "tType": "showBotActionsheet",
	            "list": ret
	        };
	        main.botActionsheet({ "centent": tplArr['module'](data) });
	    };
	    // // 搜索框点击
	    // this.Focus = function(){
	    //     $('.ui-searchbar-wrap').addClass('focus');
	    //     $('.ui-searchbar-input input').focus();
	    // }
	    // //搜索框取消
	    // this.Cancel = function(){
	    //     $('.ui-searchbar-wrap').removeClass('focus');
	    // }

	    // 搜索框js
	    this.searchFocus = function () {
	        $('.ui-searchbar-wrap').addClass('focus');
	        $('.ui-searchbar-input input').focus();
	    };
	    //搜索框取消
	    this.searchCancel = function () {
	        $('.ui-searchbar-wrap').removeClass('focus');
	    };
	    // 选择属性
	    this.Select = function (ths) {
	        ths.siblings('li').removeClass("current ui-tag-selected");
	        ths.addClass("current ui-tag-selected");
	        ths.siblings("input").val(ths.attr("lid"));
	    };
	    this.init = function () {

	        this.baseUrl = "/img/";
	        //this.outHtml();
	        //main.alert();
	        //main.botActionsheet();
	    };
	    return this.main();
	};

	var mod = new Module();
	module.exports = mod;

/***/ }
/******/ ]);